home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / ACORNUSERS / EMULATOR / MAGICKIT / assembler / MakeFile
Makefile  |  1998-04-27  |  1KB  |  85 lines

  1. AS    =    objasm
  2. ASFlags    =    -throwback -depend !Depend
  3. CC    =    gcc
  4. CFlags    =    -c -mthrowback -mstubs -IC: -mamu -O9
  5. LD    =    link
  6. LDFlags    =    -aif
  7. Libs    =    c:o.stubs gcc:o.libgcc
  8.  
  9. Objs    =    main.o assemble.o macro.o symbol.o expr.o code.o command.o pcx.o \
  10.         output.o stricmp.o throwback.o
  11.  
  12. magicasm:    $(Objs)
  13.         $(LD) -o $@ $(LDFlags) $(Libs) $(Objs)
  14.  
  15.  
  16. .SUFFIXES:    .o .c .cc .s
  17. .c.o:
  18.         $(CC) $(CFlags) $(ExtraCFlags) -o $@ $<
  19. .cc.o:
  20.         $(CC) $(CFlags) $(ExtraCFlags) -o $@ $<
  21. .s.o:
  22.         $(AS) $(ASFlags) $(ExtraASFlags) -o $@ $<
  23.  
  24.  
  25. # Dynamic dependencies:
  26.  
  27. o.stricmp:    c.stricmp
  28. o.stricmp:    C:h.string
  29. o.stricmp:    C:h.ctype
  30.  
  31. o.throwback: s.throwback
  32.  
  33. o.assemble:    c.assemble
  34. o.assemble:    C:h.stdio
  35. o.assemble:    h.defs
  36. o.assemble:    h.externs
  37.  
  38. o.macro:    c.macro
  39. o.macro:    C:h.stdio
  40. o.macro:    C:h.string
  41. o.macro:    h.defs
  42. o.macro:    h.externs
  43.  
  44. o.symbol:    c.symbol
  45. o.symbol:    C:h.stdio
  46. o.symbol:    h.defs
  47. o.symbol:    h.externs
  48.  
  49. o.expr:    c.expr
  50. o.expr:    C:h.stdio
  51. o.expr:    C:h.ctype
  52. o.expr:    h.defs
  53. o.expr:    h.externs
  54.  
  55. o.code:    c.code
  56. o.code:    C:h.stdio
  57. o.code:    h.defs
  58. o.code:    h.externs
  59.  
  60. o.command:    c.command
  61. o.command:    C:h.stdio
  62. o.command:    C:h.ctype
  63. o.command:    C:h.string
  64. o.command:    h.defs
  65. o.command:    h.externs
  66.  
  67. o.pcx:    c.pcx
  68. o.pcx:    C:h.stdio
  69. o.pcx:    C:h.stdlib
  70. o.pcx:    C:h.string
  71. o.pcx:    h.defs
  72. o.pcx:    h.externs
  73.  
  74. o.output:    c.output
  75. o.output:    C:h.stdio
  76. o.output:    h.defs
  77. o.output:    h.externs
  78.  
  79. o.main:    c.main
  80. o.main:    C:h.stdio
  81. o.main:    C:h.string
  82. o.main:    h.defs
  83. o.main:    h.externs
  84. o.main:    h.vars
  85.